<template>
  <div id="app">
    <div @click="$router.push({name:'a'})" class="a" v-for="i in a" :key="i">{{i}}</div>
    <router-view/>
  </div>

</template>
<script>
export default {
  data(){
    return {
      a:[
        "现任领导",
        "234123",
        "q23235"
      ]
    }
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
.a{
  width:100%;
  text-align:left;
  padding-left:50px;
  border:1px solid darkgray;
  margin:50px;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
</style>
